package com.nuanshui.heatedloan.dubbo.extension.container;

import com.nuanshui.framework.lang.SysStringUtils;

/**
 * Created by zxh on 2017/6/25.
 */
public class Main {


    public static void parseEnv()
    {
        String envKey="spring_profiles_active";
        String envValue=System.getenv(envKey);

        envKey=envKey.replace("_",".");

        if(SysStringUtils.isNullOrEmpty(envValue))
        {
            envValue="aliyun_test";
        }
        //envValue="curryzhang";
        System.setProperty(envKey,envValue);

        System.setProperty("fastjson.compatibleWithJavaBean","true");


    }

    public static void main(String[] args) {
        parseEnv();
        com.alibaba.dubbo.container.Main.main(args);
    }
}
